package com.common.sdk.dto;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author : YU.TAN
 * @date : 2021/12/6 16:38
 */
@AllArgsConstructor
@Getter
public enum ResultCode {
    /**
     *
     */
    //成功状态码
    SUCCESS(200,"成功"),
    FAIL(201,"失败"),
    EXCEPTION(400,"系统异常"),
    EXCEPTION_NO_PERMISSION(401,"权限不足,无法访问"),
    EXCEPTION_NO_PARAMETER(402,"方法参数异常");

    private final int code;
    private final String message;
}
